<%@page import="dao.ProdDao"%>
<%@page import="entity.Prod"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");

	String id = request.getParameter("id");
	String prodName = request.getParameter("prodname");
	String price = request.getParameter("price");
	
	Prod prod = new Prod();
	prod.setId(Integer.valueOf(id));
	prod.setPrice(Float.valueOf(price));
	prod.setProdname(prodName);
	
	new ProdDao().update(prod);
	
	response.sendRedirect("home.jsp");
	

%>
